package deepclone;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2023-03-22
 * Time: 19:06
 */

public class DeepCloneableTarget implements Serializable,Cloneable {

    private static final long seriaVersionUID = 1L;

    private String cloneName;

    private String cloneClass;

    //构造器
    public DeepCloneableTarget(String cloneName,String cloneClass){
        this.cloneClass = cloneClass;
        this.cloneName = cloneName;
    }

    //该类的属性都是String 因此克隆方法使用默认的clone即可
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
